POV-Ray : Newsgroups : povray.general : Pov 4.00 question : Re: Possible POV Object Scheme (was Re: Pov 4.00 question) Server Time
7 Aug 2024 03:21:07 EDT (-0400)
  Re: Possible POV Object Scheme (was Re: Pov 4.00 question)  
From: Kevin Wampler
Date: 2 Feb 2002 22:54:16
Message: <3C5CB5DB.7970FB10@u.arizona.edu>
Jordan wrote:
>  Has
> anyone considered using an existing scripting language, such as Lua or
> Python, as the pov sdl?

In the current scene I'm working on I have been using Icon extensively
to generate Pov code.  It's a bit awkward with vectors since there is no
operator overloading (so I have things like add(v1, v2)), but other
features of the language, especially backtracking combined with
goal-directed evaluation have made it quite worth my while.  While I do
think that there are many aspects of languages which could make Pov
scripting nicer and easier (I know there's some parts of Icon I would
love to have in there), for the most part I have found that writing
programs in other languages to output Pov code is not too much harder
(with the exception of some missing functions, like trace) than I
imagine writing in a modified Pov sdl would be.  After all,
macro("name", a, b, c, ... ) as I have been writing in Icon isn't much
harder than the #macro name(a, b, c , ... ) I would write in Pov.

	~Kevin Wampler~


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.